#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
int main() {
	char arr[10][20] = { "one","two","three","four","five","six","seven","eight","nine","ten" };
	for (int i = 0; i < 9; i++)
	{
		int tmp = 0;
		for (int j = 0; j < 9 - i; j++) {
			if (strcmp(arr[j], arr[j + 1]) > 0) {
				char brr[20];
				strcpy(brr, arr[j]);
				strcpy(arr[j], arr[j+1]);
				strcpy(arr[j+1], brr);
				tmp = 1;
			}
		}
		if (tmp == 0) {
			break;
		}
	}
	for (int i = 0; i < 10; i++) {
		printf("%s\n", arr[i]);
	}
	return 0;
}